package com.zzcoder.mall.data.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@ApiModel(value = "用户")
@Data
@MappedSuperclass
public abstract class UmsUser extends BaseEntity {
    @ApiModelProperty(value = "用户名")
    @Column(name = "username", unique = true)
    private String username;

    @ApiModelProperty(value = "密码")
    @Column
    @JsonIgnore
    private String password;

    @ApiModelProperty(value = "头像")
    @Column
    private String avatarUrl;
}
